﻿using Newtonsoft.Json;

namespace Missbot.Model.MsgCmds.Drive
{
    /// <summary>
    /// 获取文件夹中的文件命令
    /// </summary>
    public class GetFolderFilesCmd : IMsgCommand
    {
        protected override string API => "drive/files";

        /// <summary>
        /// 文件夹ID
        /// </summary>
        [JsonProperty("folderId")]
        public string FolderID { get; set; }

        /// <summary>
        /// 获取的文件数量限制
        /// </summary>
        [JsonProperty("limit")]
        public int Limit { get; set; } = 100;
    }
    
    public class GetFolderFilesPagedCmd : GetFolderFilesCmd
    {
        [JsonProperty("untilId")]
        public string UntilID { get; set; }
    }
}